<template>
  <div>

  </div>
</template>
<script>
import  './test'
//此时无需做如何操作，控制台将打印1到99
export default {
  data() {
    return {

    };
  },
  mounted() {
    let arr1 = [1, 2, 3, 1, 2, 5]
    let arr2 = new Set(arr1)
    console.log(arr2) //1 2 3 5 
    let arrSet = [...arr2] 
    console.log(arrSet[1])//2
  },
  methods: {

    delRepeat() {

    },
    load() {
      class stu {
        name;
        age;
        constructor(name) {
          this.name = name;
        }

        get() {
          return this.name
        }

        set(name) {
          this.name = name
        }


        say() {
          return this.name + '说奥里给';
        }
      }
      let xiaoming = new stu("小明");
      xiaoming.set("小红")
      console.log(xiaoming.say());

    },
  },
};
</script>